<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    .box{
   height: 1000px;
   width: 2000px;
    }
    .box2{
        height: 500px;
        width: 1000px;
        background-color: pink;
        border-radius: 20px 0 20px 0;
        margin: auto;
        padding:50px;
    }
   .head{
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
   }
   ul{
    display: flex;
   gap: 20px
   }
   li{
    background-color: white;
    cursor: pointer;
   }
   .li-bottom{
    padding: 20px;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
   }
  </style>
<body class="box">
    <div class="head">
         <h5>精品推荐</h5>
         <a href="#">查看全部</a>
    </div>
      <div>
        <ul>
            <script>
    let data = [
                        {
                            src: '../作业图片/images/course01.png',
                            title: 'Think PHP 5.0 博客系统实战项目演练',
                            num: 1125
                        },
                        {
                            src: '../作业图片/images/course02.png',
                            title: 'Android 网络动态图片加载实战',
                            num: 357
                        },
                        {
                            src: '../作业图片/images/course03.png',
                            title: 'Angular2 大前端商城实战项目演练',
                            num: 22250
                        },
                        {
                            src: '../作业图片/images/course04.png',
                            title: 'Android APP 实战项目演练',
                            num: 389
                        },
                        {
                            src: '../作业图片/images/course05.png',
                            title: 'UGUI 源码深度分析案例',
                            num: 124
                        },
                        {
                            src: '../作业图片/images/course06.png',
                            title: 'Kami2首页界面切换效果实战演练',
                            num: 432
                        },
                        {
                            src: '../作业图片/images/course07.png',
                            title: 'UNITY 从入门到精通实战案例',
                            num: 888
                        },
                        {
                            src: '../作业图片/images/course08.png',
                            title: 'Cocos 深度学习你不会错过的实战',
                            num: 590
                        },
                    ]
                    for (let i=0;i<data.length;i++){
                        document.write(`
                        <li>
                            <img scr=${data[i]} alt="">
                            <div class="li-bottom">
                                <h5>${data[i].title}</h5>
                                <span>高级</span>*<span>${data[i].num}</span>人在学习
                        `)
                    }
 </script>
        </ul>
      </div>

</body>
</html>